package xyz.kongbai121.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import xyz.kongbai121.demo.domain.Chat;

import java.util.List;

/**
 * 私信 Mapper
 * @author 空白
 */
@Repository
public interface ChatMapper extends BaseMapper<Chat> {
    /**
     * 聊天数据获取
     * @param userId        用户id
     * @param toUserId      对方id
     */
    List<Chat> get(Long userId, Long toUserId);
}
